/*
 * 菜单模板
 */
import { RouteRecordRaw } from 'vue-router';
import { LAYOUT } from '/@/router/constant';

const note: Array<RouteRecordRaw> = [
  {
    path: '/dashboard',
    name: 'Dashboard',
    component: LAYOUT,
    redirect: '/dashboard/analysis',
    meta: {
      title: '主页',
      hideChildrenInMenu: true,           //隐藏子菜单
      icon: 'bx:bx-home',
    },
    children: [
      {
        path: 'analysis',
        name: 'Analysis',
        component: () => import('/@/views/dashboard/Analysis/index.vue'),
        meta: {
          title: '首页',
          hideMenu: true,                 //隐藏
          hideBreadcrumb: true,           //隐藏导航
          currentActiveMenu: '/dashboard',
          icon: 'bx:bx-home',
          ignoreRoute: true,              //隐藏路由
        },
      },
    ],
  }
];

/**
 * 路由菜单
 */
export const test: Array<RouteRecordRaw> = [
  {
    path: '/dashboard',
    name: 'Dashboard',
    component: LAYOUT,
    redirect: '/dashboard/analysis',
    meta: {
      title: '主页',
      icon: 'bx:bx-home',
    },
    children: [
      {
        path: 'analysis',
        name: 'Analysis',
        // component: '/dashboard/Analysis/index',
        component: () => import('/@/views/dashboard/Analysis/index.vue'),
        meta: {
          title: '首页',
        },
      },
      {
        path: 'workbench',
        name: 'Workbench',
        // component: '/dashboard/workbench/index',
        component: () => import('/@/views/dashboard/workbench/index.vue'),
        meta: {
          title: '工作台',
        },
      },
    ],
  }
];

export default test;